package System_code;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-08-08
 * Time: 10:42
 */
public class Demo23 {
    private static void func() {
        // .......进行一些多线程操作
        // 第一次加锁
        synchronized (Demo23.class) {
            // 第二次加锁
            synchronized (Demo23.class) {

            }
        }
    }


    public static void main(String[] args) {
        func();
    }
}
